package cn.wolfcode.luowowo.common.query;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * 查询基类
 */
@Getter
@Setter
public class QueryObject implements Serializable {
    private int currentPage = 1;
    private int pageSize = 4;
    private String keyword;
    public String getKeyword(){
       return StringUtils.isEmpty(keyword) ? null : keyword;
    }
}
